<template>
  <div id="app">
    <img alt="Vue logo" src="./assets/logo.png">
    <!-- 导航栏 -->
    <nav>
      <router-link to="/">滨海</router-link>
      <router-link to="/CampusChashan">茶山</router-link>
      <router-link to="/CampusYueqing">乐清</router-link>
      <router-link to="/StudentSystem">学生管理系统</router-link>
    </nav>
    <!-- 路由视图 -->
    <router-view />
    
    <!-- <CampusBinhai /> -->
  </div>
</template>

<script>
import CampusBinhai from './components/CampusBinhai.vue';



export default {
  name: 'App',
  components: {
    CampusBinhai
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}

nav {
  background-color: #f8f9fa;
  padding: 1rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: #e9ecef;
}

nav a.router-link-exact-active {
  background-color: #2c3e50;
  color: white;
}
</style>
